//
// Created by xumy on 2021/8/3.
//

#ifndef ABOUTCLASS_CYLINDER_H
#define ABOUTCLASS_CYLINDER_H

#include "Circle.h"

class Cylinder :public Circle
{
public:
    Cylinder(float a = 0, float b = 0, float r = 0, float h = 0);
    void setH(float h);
    float getH();
    float area();
    float volume();
    friend ostream& operator<<(ostream &, Cylinder &);
private:
    float height;
};


#endif //ABOUTCLASS_CYLINDER_H
